package cn.com.self.apis.util;

import java.util.UUID;

public class GeneralToken {
    public static String authToken(String username){
        StringBuffer buffer = new StringBuffer();
        String uuid = UUID.randomUUID().toString().replace("-", "");
        buffer.append("username=").append(username)
                .append("&").append("sign_type=").append("RSA")
                .append("&").append("unique=").append(uuid)
                .append("&").append("time=").append(System.currentTimeMillis());
        return buffer.toString();
    }
}
